package com.springcloud.test;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

/**
 * @Desc 增加过滤器功能
 * ----------------
 * @CLASS_NAME: ZuulFilterApplication
 * ----------------
 * @Author jovi
 * ----------------
 * @Date 2020-03-27 14:10
 */
@EnableZuulProxy
@SpringCloudApplication
public class ZuulFilterApplication {

    public static void main(String[] args) {
        SpringApplication.run(ZuulFilterApplication.class, args);
    }

    @Bean
    public AccessFilter accessFilter() {
        return new AccessFilter();
    }
}
